<?php

namespace App\Library\Requests\Base;

class BasePageRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'limit' => 'nullable|integer|between:1,50',
            'page' => 'nullable|integer|min:1',
            'sortColumn' => 'nullable|string|max:30',
            'ascDesc' => 'nullable|string|in:asc,desc',
        ];
    }
}
